﻿<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="wzSqlAdmin.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
         xmlns:my="clr-namespace:wzSqlAdmin"             
        xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    mc:Ignorable="d" Width="auto" Height="auto"
    d:DesignHeight="390" d:DesignWidth="568" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <UserControl.Resources>

        <LinearGradientBrush x:Key="AccordionInnerBorderBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF7E7E7E" Offset="1"/>
            <GradientStop Color="White"/>
        </LinearGradientBrush>
        <Style x:Key="KanzleiListBoxItemStyle" TargetType="ListBoxItem">
            <Setter Property="Padding" Value="3"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="TabNavigation" Value="Local"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <Grid Background="{TemplateBinding Background}">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To=".35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To=".55" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="contentPresenter"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="SelectionStates">
                                    <VisualState x:Name="Unselected"/>
                                    <VisualState x:Name="Selected">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To=".75" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="fillColor2"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisualElement">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ColorAnimation Duration="0" To="#FFE2E2E2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="fillColor" d:IsOptimized="True"/>
                                            <ColorAnimation Duration="0" To="#19FFFFFF" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="FocusVisualElement" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="#FFE2E2E2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="fillColor2" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Rectangle x:Name="fillColor" Fill="#FFB6B390" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#FFB6B390"/>
                            <Rectangle x:Name="fillColor2" Fill="#FFB6B390" IsHitTestVisible="False" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#FFB6B390"/>
                            <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                            <Rectangle x:Name="FocusVisualElement" RadiusY="3" RadiusX="3" Stroke="#FF5A5946" StrokeThickness="1" Visibility="Collapsed" Fill="#FFBAB474"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="#FFC1BCBC">
        <Image    HorizontalAlignment="Center" Name="image1" Stretch="Fill" 
                  VerticalAlignment="Center"  Width="570" Height="360"  Source="/wzSqlAdmin;component/images/Lupo.png" Opacity="0.7" />
        <toolkit:BusyIndicator IsBusy="False" Name="Busy"  DisplayAfter="0" >


            <Grid Name="Base">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Button Click="Esegui" Width="100"  Name="btnConn"  Content="Connect" Margin="263,0,205,0"></Button>
                <Button Click="Install" Width="100" Name="btnInst"  Content="Install" Margin="157,0,311,0"></Button>
                <Button Content="Execute Query" Name="ExQuery"  Margin="369,0,99,0" Width="100" Click="ExecQuery" />

                <toolkit:Accordion Width="auto" Grid.Row="1" ItemContainerStyle="{StaticResource AccordionContainerStyleLawBot}"
                               Name="Acc" Height="auto" Style="{StaticResource NewAccordionStyle}">

                </toolkit:Accordion>
                <StackPanel x:Name="sp" Grid.Row="1" HorizontalAlignment="Center" Width="auto" Height="auto" Background="{x:Null}">

                    <Grid Name="appo"></Grid>
                </StackPanel>
            </Grid>


        </toolkit:BusyIndicator>
    </Grid>
</UserControl>
